{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
<!--主要内容开始-->
<div class="content-wrapper">
    <section class="content">
        <div class="row">
            <section class="col-lg-12 connectedSortable">
                <div class="box box-default box-solid">
                    <form name="myform" action="" method="post" role="form" enctype="multipart/form-data">
                        <div class="box-header with-border">
                            <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                            <p class="box-title">{%if $type eq 1%}继续教育详情{%else%}其他资料详情{%/if%}</p>
                        </div>
                        <div class="box-body">
                            <input type="hidden" name="keep_type" value="{%$type%}">
							{%if $type eq 1%}
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right" >
                                    项目名称：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.keep_name%}</div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right" >
                                    {%if $type eq 1%}教师姓名{%else%}提交者{%/if%}：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.keep_owner%}</div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right" >
                                    {%if $type eq 1%}培训日期{%else%}提交日期{%/if%}：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.keep_time%} 
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right" >
                                    培训机构：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.keep_unit%}</div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right" >
                                    学时：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.keep_hour%}</div>
                            </div>

                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right" >
                                    学分：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.keep_min%}</div>
                            </div>

                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right">
                                    实际学分：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.keep_score%}</div>
                            </div>
							<div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right">
                                    备注：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.keep_remark%}</div>
                            </div>
                            {%else%}
                            <div class="form-group">
						  <label for="inputPassword3" class="col-md-1 control-label">
							   项目名称：
						  </label>
						  <div class="input-group col-md-6 col-sm-12 col-xs-12">
							   {%$data.keep_name%}
						  </div> 
							</div>
							<div class="form-group">
						 <label class="col-md-1 control-label">
							   文章内容：
						  </label>
                          <div class="input-group col-md-10 col-sm-12 col-xs-12">
						     {%$data.keep_content%}
						 </div>
					</div>
					<div class="form-group">
						  <div class="input-group  col-sm-12 col-xs-12">
                              <label class="col-md-1 control-label">
							   附件：
						     </label>
                              <div class="input-group col-md-10 col-sm-12 col-xs-12">
                               <a href="index.php?a=keep.output&keep_file={%$data.keep_file%}">{%$data.keep_file%}</a>
                              </div>
						  </div> 
				    </div>
							{%/if%}
                        </div><!--box-body -->
                    </form>
                </div><!--box box-default box-solid-->
            </section>

        </div><!--row-->
    </section>
</div>
<!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
<script>
    $(function() {
        $( "#datepicker" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true,
            yearRange:"1930:2010"
        });
        $( "#datepicker1" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true
        });
        $( "#datepicker2" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true
        });
        $( "#datepicker3" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true
        });
    });
    //上传图片
    $(function(){
        var imgurl=[];
        function createfile(){
            $('#updiv').append("<input type='file'  name='photos' class='upfile'>");
        }
        function showimg(url){
            var img='<img src="'+url+'"/>';
            $('#imglist').append(img);
        }
        function addfile(){
            showimg($(this).val());
            $(this).hide();
            createfile();
            $('.upfile').bind('change',addfile);
        }
        $('.upfile').bind('change',addfile);
    })
</script>
